const { program } = require("commander");
const packageJSON = require("../../package.json");

module.exports = function () {
  // 处理--version的操作
  program.version(packageJSON.version, "-v --version");
  program.option("-w --why", "a why cli program~");
  program.option(
    "-d --dest <dest>",
    "a destination folder, 例如: -d src/components"
  );

  program.on("--help", () => {
    console.log("");
    console.log("others");
    console.log("  xxx");
    console.log("  yyy");
  });
};
